package com.ruoyi.insurance.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.insurance.mapper.OutsideAttackMapper;
import com.ruoyi.insurance.domain.OutsideAttack;
import com.ruoyi.insurance.service.IOutsideAttackService;

/**
 * 外部攻击Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-10
 */
@Service
public class OutsideAttackServiceImpl implements IOutsideAttackService 
{
    @Autowired
    private OutsideAttackMapper outsideAttackMapper;

    /**
     * 查询外部攻击
     * 
     * @param attackId 外部攻击主键
     * @return 外部攻击
     */
    @Override
    public OutsideAttack selectOutsideAttackByAttackId(Long attackId)
    {
        return outsideAttackMapper.selectOutsideAttackByAttackId(attackId);
    }

    /**
     * 查询外部攻击列表
     * 
     * @param outsideAttack 外部攻击
     * @return 外部攻击
     */
    @Override
    public List<OutsideAttack> selectOutsideAttackList(OutsideAttack outsideAttack)
    {
        return outsideAttackMapper.selectOutsideAttackList(outsideAttack);
    }

    /**
     * 新增外部攻击
     * 
     * @param outsideAttack 外部攻击
     * @return 结果
     */
    @Override
    public int insertOutsideAttack(OutsideAttack outsideAttack)
    {
        return outsideAttackMapper.insertOutsideAttack(outsideAttack);
    }

    /**
     * 修改外部攻击
     * 
     * @param outsideAttack 外部攻击
     * @return 结果
     */
    @Override
    public int updateOutsideAttack(OutsideAttack outsideAttack)
    {
        return outsideAttackMapper.updateOutsideAttack(outsideAttack);
    }

    /**
     * 批量删除外部攻击
     * 
     * @param attackIds 需要删除的外部攻击主键
     * @return 结果
     */
    @Override
    public int deleteOutsideAttackByAttackIds(Long[] attackIds)
    {
        return outsideAttackMapper.deleteOutsideAttackByAttackIds(attackIds);
    }

    /**
     * 删除外部攻击信息
     * 
     * @param attackId 外部攻击主键
     * @return 结果
     */
    @Override
    public int deleteOutsideAttackByAttackId(Long attackId)
    {
        return outsideAttackMapper.deleteOutsideAttackByAttackId(attackId);
    }
}
